package com.blog.service.frontpage;

import java.util.List;
import com.blog.dao.frontpage.DiscussDao;
import com.blog.entity.DiscussConstraintEntity;
import com.blog.entity.DiscussEntity;

public class DiscussService {
	DiscussDao dao = new DiscussDao();
	
	public int insertDiscuss(DiscussEntity discuss) {
		return dao.insertDiscuss(discuss);
	}

	public List<DiscussConstraintEntity> queryAllDiscuss(int articleid) {
		return dao.queryAllDiscuss(articleid);
		
	}
}
